package com.itheima.泛型;

/**
 * @Author 王加鑫
 * @Date 2021/5/14 9:30
 * @Version 1.0
 */
public class Box<E> {
    private E eleMent;

    public Box() {
    }

    public Box(E eleMent) {
        this.eleMent = eleMent;
    }

    public E getEleMent() {
        return eleMent;
    }

    public void setEleMent(E eleMent) {
        this.eleMent = eleMent;
    }

    @Override
    public String toString() {
        return "Box{" +
                "eleMent=" + eleMent +
                '}';
    }
}
